<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SEOCMS内容管理系统</title>
<link href="__PUBLIC__/style/style.css" rel="stylesheet" type="text/css" />
</head>
<body id="page">
<h2 class="tag">当前位置： 用户管理 &gt; 编辑管理员</h2>
<div class="box">
  <div class="page_menu"><a href="__URL__/index">管理员列表</a> <a href="__URL__/add">添加管理员</a> <a href="__APP__/User/group">权限管理</a></div>
  <div class="infobox">
    <form id="form" action="__URL__/edit" method="post">
      <table width="460" border="0" cellspacing="0" cellpadding="0" class="table_b">
        <tr>
          <td width="100" class="td">管理组</td>
          <td class="td"><select name="gid" id="gid">
              <?php if (is_array($list)){ foreach ($list as $vo) { ?>
              <option <?php if($info['role_id']==$vo['id']){ ?> selected="selected" <?php } ?> value="{$vo['id']}">{$vo['name']}</option>
              <?php }} ?>
            </select></td>
        </tr>
        <tr>
          <td width="120" class="td">帐号</td>
          <td class="td"><input name="user" type="text" class="input" id="user" style="width:" value="{$info['username']}" /></td>
        </tr>
        <tr>
          <td width="120" class="td">昵称</td>
          <td class="td"><input name="nicename" type="text" class="input" id="nicename" value="{$info['nicename']}" /></td>
        </tr>
        <tr>
          <td width="120" class="td">密码</td>
          <td class="td"><input name="password" type="password" class="input" id="password" /><span class="sm">如不修改密码,请输入您的原始密码！</span></td>
        </tr>
        <tr>
          <td class="td">最近登录IP</td>
          <td class="td"><input type="text" value="{$info['ip']}" readonly="readonly"  class="input"/></td>
        </tr>
        <tr>
          <td class="td">登录次数</td>
          <td class="td"><input type="text" value="{$info['loginnum']}次" readonly="readonly"  class="input"/></td>
        </tr>
        <tr>
          <td class="td">最后修改时间</td>
          <td class="td"><input type="text" value="{date('Y-m-d H:i:s',$info['regtime'])}" readonly="readonly"  class="input"/></td>
        </tr>
        <tr>
          <td class="td"><input name="do" type="hidden" value="yes" />
            <input name="id" type="hidden" value="{$info['uid']}" /></td>
          <td align="left" class="td"><input type="submit" value="更 新" class="button"/></td>
        </tr>
      </table>
    </form>
  </div>
</div>
</body>
</html>
